PHP functions: Master the applications of ord () and chr () functions. The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics],
The CHR function is used to convert an ASCII code to a character, the Ord function is used to convert a character to ASCII ASCII code that is the computer can display the character encoding, its value range is 0-255, including punctuation, letters,
The ord () function converts a character to a decimal number, and the chr () function converts a decimal number to a character. in binary, octal, the relationship between decimal and hexadecimal forms serves as a bridge between Chinese character
The ord () function converts a character to a decimal number, and the chr () function converts a decimal number to a character. in binary, octal, the relationship between decimal and hexadecimal forms serves as a bridge between Chinese character
In php, chr () is converted between ascii characters and corresponding numbers, but why can the following code output Chinese characters? For example, Chinese characters & #039; sense & #039; unt-8 code is e6849f; $ achr (hexdec (& #039; e6 & #039 ;)
Chinese character encoding Research series phase III, PHP function Chapter Master ord () and Chr () function application, in the previous period [PHP Basics of ASCII code comparison and character conversion] in the article to understand the ASCII
The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics], I learned about ASCII code and character conversion methods, but two
The third part of the Chinese character encoding Study Series, the PHP function section, master the application of the ord () and chr () functions, in the previous [PHP Basics], I learned about ASCII code and character conversion methods, but two
The CHR function is used to convert an ASCII code to a character
The ORD function is used to convert characters to ASCII code
ASCII code is the computer can display the character encoding, its value range is 0-255, including punctuation, letters,
The chr function is used to convert ASCII codes into characters.
The ord function is used to convert characters into ASCII codes.
ASCII code is the encoding of characters that can be displayed by a computer. Its value ranges from 0 to 255,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.